import React from "react";

import { uniqueId } from "lodash";

const FileCertificate = () => {
  const clipPathId = uniqueId("clip-path-");
  const linearGradientId = uniqueId("linear-gradient-");

  return (
    <svg
      width="34"
      height="41"
      viewBox="0 0 34 41"
      fill="none"
      xmlns="http://www.w3.org/2000/svg"
    >
      <g clipPath={`url(#${clipPathId})`}>
        <path
          d="M29.3333 40.2505H4.66667C3.33198 40.2505 2.25 39.1685 2.25 37.8338V3.16716C2.25 1.83247 3.33198 0.750488 4.66667 0.750488H24.2288C24.8697 0.750488 25.4844 1.0051 25.9376 1.45831L31.0422 6.56288C31.4954 7.0161 31.75 7.63078 31.75 8.27172V37.8338C31.75 39.1685 30.668 40.2505 29.3333 40.2505Z"
          fill="white"
          stroke="#192147"
          strokeWidth="0.5"
        />
        <path
          d="M23.5 1.00049H24.3335L24.8335 7.50049L31.5 8.00049V9.00049H25.5C24.3954 9.00049 23.5 8.10506 23.5 7.00049V1.00049Z"
          fill="#C5C7D1"
        />
        <path
          d="M24.5 0.833984V6.50065C24.5 7.23703 25.097 7.83398 25.8333 7.83398H31.8333"
          stroke="#192147"
          strokeWidth="0.5"
        />
        <path
          d="M14.8122 30.6894L14.7991 30.686L14.7858 30.6838L14.7796 30.6828C14.6808 30.6663 14.5588 30.646 14.4155 30.646C14.0911 30.646 13.7232 30.738 13.4018 30.8184L13.3799 30.8238L13.3467 30.8321C13.0115 30.916 12.7406 30.9838 12.4899 30.9838C12.361 30.9838 12.2453 30.9582 12.1473 30.9042C12.0423 30.8437 11.9494 30.7342 11.863 30.5595C11.7756 30.3829 11.7079 30.1672 11.6382 29.9221C11.6263 29.8802 11.6143 29.8373 11.602 29.7936C11.5456 29.5922 11.4852 29.3762 11.4117 29.1793C11.3224 28.9402 11.2021 28.694 11.0144 28.5057C10.8258 28.3122 10.5789 28.189 10.3384 28.0982C10.1383 28.0227 9.91876 27.9614 9.71445 27.9044C9.67302 27.8928 9.63221 27.8814 9.59232 27.8701C9.34609 27.8004 9.12894 27.7328 8.95012 27.6444C8.77287 27.5568 8.65871 27.4608 8.59381 27.3492L8.59336 27.3484C8.53458 27.248 8.50918 27.1099 8.52263 26.9152C8.53614 26.7196 8.5861 26.4994 8.64858 26.2516C8.65805 26.214 8.66784 26.1757 8.67777 26.1369C8.73084 25.9292 8.78804 25.7055 8.82296 25.4911C8.86434 25.2372 8.88121 24.9618 8.81 24.7025C8.74265 24.4464 8.59017 24.2199 8.4286 24.0241C8.29777 23.8656 8.14403 23.7079 8.00011 23.5602C7.96602 23.5253 7.93249 23.4909 7.89994 23.4572C7.72288 23.2738 7.56952 23.1055 7.4597 22.9385C7.3508 22.7729 7.3 22.6309 7.3 22.5C7.3 22.3693 7.3506 22.2287 7.45908 22.0651C7.5686 21.8999 7.72165 21.7338 7.89873 21.5525C7.93093 21.5196 7.9641 21.4859 7.99783 21.4517C8.14208 21.3055 8.29645 21.1489 8.42779 20.9911C8.58985 20.7964 8.74284 20.5705 8.8102 20.3136C8.88098 20.0511 8.8645 19.7743 8.823 19.5186C8.78801 19.3029 8.73068 19.0786 8.67753 18.8707C8.66768 18.8321 8.65798 18.7941 8.64858 18.7569C8.58611 18.5091 8.53616 18.2889 8.52263 18.0923C8.50931 17.8985 8.53391 17.7571 8.59362 17.6512C8.65814 17.5441 8.77186 17.4502 8.94901 17.3636C9.12843 17.2758 9.3462 17.208 9.59232 17.1383C9.63353 17.1266 9.6757 17.1149 9.71852 17.1029C9.92157 17.0463 10.1391 16.9856 10.3372 16.9117C10.5773 16.8222 10.8242 16.7014 11.0128 16.5128C11.2014 16.3242 11.3222 16.0773 11.4117 15.8372C11.4856 15.6391 11.5463 15.4216 11.6029 15.2185C11.6149 15.1757 11.6266 15.1335 11.6383 15.0923C11.708 14.8462 11.7758 14.6284 11.8636 14.449C11.9498 14.2727 12.0433 14.1592 12.1497 14.0945C12.2471 14.0414 12.362 14.0162 12.4899 14.0162C12.7406 14.0162 13.0115 14.084 13.3467 14.1679C13.3577 14.1706 13.3688 14.1734 13.3799 14.1762L13.4018 14.1816C13.7233 14.2621 14.0911 14.3541 14.4155 14.3541C14.4204 14.3541 14.4254 14.3541 14.4305 14.3541C14.5361 14.3542 14.6766 14.3543 14.8215 14.3081C15.0752 14.2397 15.2984 14.0882 15.4911 13.9278C15.6489 13.7964 15.8055 13.6421 15.9517 13.4978C15.9859 13.4641 16.0196 13.4309 16.0525 13.3987C16.2338 13.2216 16.3999 13.0686 16.5651 12.9591C16.7287 12.8506 16.8693 12.8 17 12.8C17.1309 12.8 17.2729 12.8508 17.4385 12.9597C17.6055 13.0695 17.7738 13.2229 17.9572 13.3999C17.9909 13.4325 18.0253 13.466 18.0602 13.5001C18.2079 13.644 18.3656 13.7978 18.5241 13.9286C18.7164 14.0873 18.9382 14.2372 19.1887 14.3063C19.325 14.3549 19.484 14.3544 19.568 14.3541C19.5739 14.3541 19.5794 14.3541 19.5845 14.3541C19.9118 14.3541 20.25 14.2691 20.5588 14.1915C20.5794 14.1864 20.5998 14.1812 20.6201 14.1762C20.9692 14.0889 21.2677 14.0162 21.5101 14.0162C21.6636 14.0162 21.7704 14.0447 21.841 14.0889L21.8409 14.089L21.8492 14.0938C21.9608 14.1587 22.0568 14.2729 22.1444 14.4501C22.2328 14.6289 22.3004 14.8461 22.3701 15.0923C22.3814 15.1322 22.3928 15.173 22.4044 15.2144C22.4614 15.4188 22.5227 15.6383 22.5982 15.8384C22.689 16.0789 22.8123 16.3258 23.0057 16.5144C23.1941 16.7021 23.4402 16.8224 23.6793 16.9117C23.8762 16.9852 24.0922 17.0456 24.2936 17.102C24.3373 17.1143 24.3802 17.1263 24.4221 17.1382C24.6672 17.2079 24.8829 17.2756 25.0595 17.363C25.235 17.4498 25.3447 17.5432 25.4051 17.6488C25.4657 17.755 25.4908 17.897 25.4774 18.0923C25.4638 18.2889 25.4139 18.5091 25.3514 18.7569C25.342 18.7941 25.3323 18.8321 25.3225 18.8707C25.2693 19.0786 25.212 19.3029 25.177 19.5186C25.1355 19.7743 25.119 20.0511 25.1898 20.3136C25.2572 20.5705 25.4101 20.7964 25.5722 20.9911C25.7035 21.1489 25.8579 21.3054 26.0022 21.4517C26.0359 21.4859 26.0691 21.5196 26.1013 21.5525C26.2784 21.7338 26.4314 21.8999 26.5409 22.0651C26.6494 22.2287 26.7 22.3693 26.7 22.5C26.7 22.6309 26.6492 22.7729 26.5403 22.9385C26.4305 23.1055 26.2771 23.2738 26.1001 23.4572C26.0675 23.4909 26.034 23.5253 25.9999 23.5602C25.856 23.7079 25.7022 23.8656 25.5714 24.0241C25.4098 24.2199 25.2573 24.4464 25.19 24.7026C25.1188 24.9619 25.1357 25.2373 25.177 25.4911C25.212 25.7055 25.2692 25.9292 25.3222 26.1369C25.3322 26.1757 25.3419 26.214 25.3514 26.2516C25.4139 26.4994 25.4639 26.7196 25.4774 26.9152C25.4908 27.1099 25.4654 27.248 25.4066 27.3484L25.4066 27.3484L25.4036 27.3538C25.3426 27.4631 25.2327 27.5578 25.0584 27.645C24.8824 27.733 24.6673 27.8005 24.4221 27.8702C24.3815 27.8818 24.34 27.8934 24.2977 27.9053C24.0951 27.962 23.877 28.0231 23.6781 28.0983C23.4386 28.1888 23.1924 28.3116 23.0041 28.5041C22.8116 28.6924 22.6888 28.9386 22.5983 29.1781C22.5231 29.377 22.462 29.5951 22.4053 29.7978C22.3934 29.84 22.3818 29.8816 22.3702 29.9221C22.3005 30.1673 22.233 30.3824 22.145 30.5584C22.0578 30.7327 21.9631 30.8426 21.8538 30.9036L21.8473 30.9072L21.841 30.9111C21.7704 30.9553 21.6636 30.9838 21.5101 30.9838C21.2677 30.9838 20.9692 30.9111 20.6201 30.8238C20.5998 30.8188 20.5794 30.8136 20.5588 30.8085C20.25 30.7309 19.9118 30.646 19.5845 30.646C19.4559 30.646 19.3164 30.6666 19.2216 30.6856L19.2131 30.6873L19.2047 30.6894C18.9476 30.7565 18.7204 30.9094 18.5241 31.0714C18.3656 31.2022 18.2079 31.356 18.0602 31.4999C18.0253 31.534 17.9909 31.5675 17.9572 31.6001C17.7738 31.7771 17.6055 31.9305 17.4385 32.0403C17.2729 32.1492 17.1309 32.2 17 32.2C16.8693 32.2 16.7287 32.1494 16.5651 32.0409C16.3999 31.9314 16.2338 31.7784 16.0525 31.6013C16.0196 31.5691 15.9859 31.5359 15.9517 31.5022C15.8055 31.3579 15.6489 31.2036 15.4911 31.0722C15.2961 30.9099 15.0697 30.7566 14.8122 30.6894Z"
          fill={`url(#${linearGradientId})`}
          stroke="#192147"
          strokeWidth="0.6"
        />
        <path
          fillRule="evenodd"
          clipRule="evenodd"
          d="M20.4967 18.7801C20.7833 18.9807 20.853 19.3757 20.6524 19.6623L16.2183 25.9967C16.1109 26.1502 15.9411 26.2482 15.7546 26.2645C15.568 26.2809 15.3838 26.2138 15.2514 26.0814L13.3511 24.1811C13.1037 23.9337 13.1037 23.5326 13.3511 23.2852C13.5984 23.0379 13.9995 23.0379 14.2469 23.2852L15.6133 24.6517L19.6145 18.9358C19.8151 18.6492 20.2101 18.5795 20.4967 18.7801Z"
          fill="#965D1A"
        />
      </g>
      <defs>
        <linearGradient
          id={linearGradientId}
          x1="17.0213"
          y1="12.5"
          x2="17.0213"
          y2="27.7807"
          gradientUnits="userSpaceOnUse"
        >
          <stop stopColor="#FFED5B" />
          <stop offset="1" stopColor="#E8AD06" />
        </linearGradient>
        <clipPath id={clipPathId}>
          <rect
            width="34"
            height="40"
            fill="white"
            transform="translate(0 0.5)"
          />
        </clipPath>
      </defs>
    </svg>
  );
};

export default FileCertificate;
